﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FaceBookApp
{
    public partial class frmSayfaEkle : Form
    {
        public frmSayfaEkle()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Database.SayfaEkle(textBox1.Lines, cmbTablo.Text);
        }

        private void frmSayfaEkle_Load(object sender, EventArgs e)
        {
            cmbTablo.Items.AddRange(Database.TabloAdlari());
            if (cmbTablo.Items.Count > 0)
            {
                cmbTablo.SelectedIndex = 0;
            }
        }
    }
}
